<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<style>
<!--

-->

.imgrootmenu{
	width:20px;
	height:20px;
}
</style>

<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="js/jquery.js"></script> 

<script type="text/javascript">

var path='<%=basePath%>';

$(function(){	
	//导航切换
	$(".menuson .header").click(function(){
		var $parent = $(this).parent();
		$(".menuson>li.active").not($parent).removeClass("active open").find('.sub-menus').hide();
		
		$parent.addClass("active");
		if(!!$(this).next('.sub-menus').size()){
			if($parent.hasClass("open")){
				$parent.removeClass("open").find('.sub-menus').hide();
			}else{
				$parent.addClass("open").find('.sub-menus').show();	
			}
			
			
		}
	});
	
	// 三级菜单点击
	$('.sub-menus li').click(function(e) {
        $(".sub-menus li.active").removeClass("active")
		$(this).addClass("active");
    });
	
	$('.title').click(function(){
		var $ul = $(this).next('ul');
		$('dd').find('.menuson').slideUp();
		if($ul.is(':visible')){
			$(this).next('.menuson').slideUp();
		}else{
			$(this).next('.menuson').slideDown();
		}
	});
	
	/* getMenu(); */
	
});


function getMenu(){
	$.post(path+"adminUserAction_getRoles.action",{
		
	},function(res){
		res=eval('('+res+')');
		alert(res.rescode);
	});
}

</script>


</head>

<body style="background:#fff3e1;">
	<div class="lefttop"><span></span>菜单</div>
    
    <dl class="leftmenu">
    
    <dd>
    <div class="title">
    <span><img src="images/leftico02.png" /></span>新闻设置
    </div>
    <ul class="menuson">
        <li><cite></cite><a class="header" href="newsadd.jsp" target="rightFrame">新闻添加</a><i></i></li>
        <li><cite></cite><a class="header" href="newslist.jsp" target="rightFrame">新闻列表</a><i></i></li>
        </ul>     
    </dd> 
    
    <dd>
    <div class="title">
    <span><img src="images/leftico02.png" /></span>产品设置
    </div>
    <ul class="menuson"> 
        <li><cite></cite><a class="header" href="prodsadd.jsp" target="rightFrame">产品添加</a><i></i></li>
        <li><cite></cite><a class="header" href="prodslist.jsp" target="rightFrame">产品列表</a><i></i></li>
        </ul>     
    </dd> 
    
    
    <dd><div class="title"><span><img src="images/leftico03.png" /></span>系统设置</div>
    <ul class="menuson">
        <!-- <li><cite></cite><a class="header" href="imgupload.jsp" target="rightFrame">图片设置</a><i></i></li> -->
        <li><cite></cite><a class="header" href="introduceedit.jsp" target="rightFrame">公司简介</a><i></i></li>
        <li><cite></cite><a class="header" href="advertiseadd.jsp" target="rightFrame">人才招聘</a><i></i></li>
        <li><cite></cite><a class="header" href="advertiselist.jsp" target="rightFrame">招聘信息</a><i></i></li>
        <li><cite></cite><a class="header" href="navmenuadd.jsp" target="rightFrame">导航菜单添加</a><i></i></li>
        <li><cite></cite><a class="header" href="navmenulist.jsp" target="rightFrame">导航菜单列表</a><i></i></li>
        <li><cite></cite><a class="header" href="zizhiadd.jsp" target="rightFrame">企业资质上传</a><i></i></li>
        <li><cite></cite><a class="header" href="zizhilist.jsp" target="rightFrame">企业资质列表</a><i></i></li>
    </ul>    
    </dd>  
    
    
    <dd><div class="title"><span><img src="images/leftico04.png" /></span>日志信息</div>
    <ul class="menuson"> 
        <li id="li_log_login"><cite></cite><a class="header" href="log_login_list.jsp"  target="rightFrame">登录日志</a><i></i></li>
        <li id="li_log_login"><cite></cite><a class="header" href="log_news_list.jsp"  target="rightFrame">新闻日志</a><i></i></li>
        <li id="li_log_login"><cite></cite><a class="header" href="log_prods_list.jsp"  target="rightFrame">产品日志</a><i></i></li>
        <li id="li_log_login"><cite></cite><a class="header" href="log_ads_list.jsp"  target="rightFrame">招聘日志</a><i></i></li>
        <li id="li_log_login"><cite></cite><a class="header" href="log_navmenus_list.jsp"  target="rightFrame">导航菜单日志</a><i></i></li>
    </ul>
    </dd>   
    
    <dd><div class="title"><span><img src="images/manage/usermanage.png" class="imgrootmenu"/></span>用户管理</div>
    <ul class="menuson">
        <li><cite></cite><a class="header" href="userregist.jsp" target="rightFrame">用户注册</a><i></i></li>
        <!-- <li><cite></cite><a class="header" href="userlist.jsp" target="rightFrame">用户列表</a><i></i></li> -->
        <li><cite></cite><a class="header" href="updatepwd.jsp" target="rightFrame">修改密码</a><i></i></li>
        <li><cite></cite><a class="header" href="javascript:logout();" target="rightFrame">退出系统</a><i></i></li>
    </ul>
    </dd>   
  <!--   <dd><div class="title"><span><img src="images/manage/usermanage.png" class="imgrootmenu"/></span>权限管理</div>
    <ul class="menuson">
        <li><cite></cite><a class="header" href="privsmanage.jsp" target="rightFrame">权限管理</a><i></i></li>
        <li><cite></cite><a class="header" href="updatepwd.jsp" target="rightFrame">角色管理</a><i></i></li>
        <li><cite></cite><a class="header" href="javascript:logout();" target="rightFrame">用户角色管理</a><i></i></li>
    </ul>
    </dd>    -->
     
    </dl>
<script type="text/javascript">
var path='<%=basePath%>'; 
function logout() {
	$.ajax({
		type : "POST",
		url : path + "/adminUserAction_logout.action",
		dataType : "json",
		success : function(result) {
			window.parent.parent.location.href = path + "/login.jsp";
		}
	});
}

</script>